const http = require('http')

http.createServer((req, res)=>{
    res.writeHead(200,{
        "Access-Control-Allow-Origin": "*",
        'Access-Control-Allow-Headers': 'X-Test-Cors',
        "Access-Control-Allow-Methods": "PUT,GET,POST",
        "Access-Control-Max-Age": '10000'
    })
    res.end('123')
}).listen(8887)

console.log('server listening 8887')
